/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.vladimirkolarevic.eventplanner.service;

import com.vladimirkolarevic.eventplanner.Event;
import com.vladimirkolarevic.eventplanner.User;
import java.io.Serializable;
import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

/**
 *
 * @author Vlada
 */
public interface MembershipsService {
	@CommitAfter
    Long addUser(User user);
	@CommitAfter
    void removeUser(User user);

    User findUser(Serializable id);
    @CommitAfter
    boolean changeUserInfo(User user);

    User getUserByUserName(Serializable username);

    User getUser(User user);
    
    List<Event> getEvents(Long id); 



}
